package cn.ytr.project.query;

import lombok.Getter;
import lombok.Setter;

//用来封装用户传递过来的参数
//通用的查询对象
@Getter@Setter
public class QueryObject {

	private int currentPage = 1;
	private int pageSize = 5;
	
	
	
	
	//计算开始索引
	public int getStart(){
		return (currentPage - 1) * pageSize;
	}
}
